﻿public class HomeWork {
	String name;
	int age;
	String classNo;
	String hobby;
	
	public void show(){
		System.out.println(name+"\n年龄："+age+"\n就读于："+classNo+"\n爱好："+hobby);
	}
	
	public static void main(String[] args) {
		HomeWork student = new HomeWork();
		student.name = "刘梦成";
		student.age = 22;
		student.classNo = "Java45班";
		student.hobby = "看电影、写作";
		student.show();

	}
}